/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gestionclientes;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

/**
 *
 * @author JAVA
 */
public class Fichero {
    public static String Leer() throws FileNotFoundException, IOException
    {
        FileReader fr = new FileReader("codigos.ini");
        BufferedReader bf = new BufferedReader(fr);

        String sCadena = bf.readLine();
        return sCadena;

    }

    public static void Escribir() throws FileNotFoundException, IOException
    {
        BufferedWriter bw = new BufferedWriter(new FileWriter("codigos.ini"));
        bw.write("Hola, esto es una prueba\n");
    }

}
